package com.sch.hospital.domain;

import java.time.LocalDate;

/**
 * 预约时间段对象 timeslot
 * 
 * @author ruoyi
 * @date 2025-06-30
 */
public class Timeslot
{
    /** 时间段ID，自增主键 */
    private Long id;

    /** 时间段名称 */
    private String slotName;

    /** 开始时间 */
    private String startTime;

    /** 结束时间 */
    private String endTime;

    /** 时段:0上午,1下午,2晚上 */
    private Long period;

    /** 默认容量 */
    private Long capacity;

    /** 状态:0禁用,1启用 */
    private Long status;

    /** 创建时间 */
    private LocalDate createTime;

    /** 更新时间 */
    private LocalDate updateTime;

    public Timeslot() {
    }

    public Timeslot(Long id, String slotName, String startTime, String endTime, Long period, Long capacity, Long status, LocalDate createTime, LocalDate updateTime) {
        this.id = id;
        this.slotName = slotName;
        this.startTime = startTime;
        this.endTime = endTime;
        this.period = period;
        this.capacity = capacity;
        this.status = status;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }

    /**
     * 获取
     * @return id
     */
    public Long getId() {
        return id;
    }

    /**
     * 设置
     * @param id
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 获取
     * @return slotName
     */
    public String getSlotName() {
        return slotName;
    }

    /**
     * 设置
     * @param slotName
     */
    public void setSlotName(String slotName) {
        this.slotName = slotName;
    }

    /**
     * 获取
     * @return startTime
     */
    public String getStartTime() {
        return startTime;
    }

    /**
     * 设置
     * @param startTime
     */
    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    /**
     * 获取
     * @return endTime
     */
    public String getEndTime() {
        return endTime;
    }

    /**
     * 设置
     * @param endTime
     */
    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    /**
     * 获取
     * @return period
     */
    public Long getPeriod() {
        return period;
    }

    /**
     * 设置
     * @param period
     */
    public void setPeriod(Long period) {
        this.period = period;
    }

    /**
     * 获取
     * @return capacity
     */
    public Long getCapacity() {
        return capacity;
    }

    /**
     * 设置
     * @param capacity
     */
    public void setCapacity(Long capacity) {
        this.capacity = capacity;
    }

    /**
     * 获取
     * @return status
     */
    public Long getStatus() {
        return status;
    }

    /**
     * 设置
     * @param status
     */
    public void setStatus(Long status) {
        this.status = status;
    }

    /**
     * 获取
     * @return createTime
     */
    public LocalDate getCreateTime() {
        return createTime;
    }

    /**
     * 设置
     * @param createTime
     */
    public void setCreateTime(LocalDate createTime) {
        this.createTime = createTime;
    }

    /**
     * 获取
     * @return updateTime
     */
    public LocalDate getUpdateTime() {
        return updateTime;
    }

    /**
     * 设置
     * @param updateTime
     */
    public void setUpdateTime(LocalDate updateTime) {
        this.updateTime = updateTime;
    }

    public String toString() {
        return "Timeslot{id = " + id + ", slotName = " + slotName + ", startTime = " + startTime + ", endTime = " + endTime + ", period = " + period + ", capacity = " + capacity + ", status = " + status + ", createTime = " + createTime + ", updateTime = " + updateTime + "}";
    }
}
